home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Source Code ƒ / MPW C ƒ / NetTimeProtocol ƒ / ntp.readme < prev    next >
Encoding:
Text File  |  1990-03-23  |  1.7 KB  |  47 lines  |  [TEXT/MPS ]

  1. ntptime -     MPW tool to set the mac clock via the network.  
  2.             Requires the 1.0 MacTCP drivers.
  3.  
  4. Author -    Ravinder Chandhok <ravinder.chandhok@cs.cmu.edu> (applelink a14)
  5.             From unix code from U Maryland and Brad White at CMU.
  6.  
  7. Usage: ntptime [-v] [-s] [-t secs]
  8.  
  9. To use ntptime to set your clock, do the following:
  10.  
  11. 1)    Install the ntptime tool into your usertools folder (or somewhere
  12.     that MPW will find it).
  13.  
  14. 2)    Install and edit the ntp.conf file in your system folder, you should
  15.     configure it to reflect the addresses of your favorite ntp servers.
  16.  
  17. 3)    Use the "Map" CDEV to set your time zone properly, accounting for
  18.     daylight savings time by physically altering the difference from GMT
  19.     by one hour.  This will have the effect of screwing up your clock,
  20.     but the next step will correct that.  For example, here in 
  21.     Pittsburgh we are 5 hours west of GMT, but with DST we are only 4.
  22.  
  23. 4)    Just to see the effect, execute this line MPW:
  24.  
  25.     ntptime; ntptime -s; ntptime
  26.     
  27.     The first call will tell you how far off your clock is, the second
  28.     call will set the clock (-s) and the third call will report the currect
  29.     difference.
  30.  
  31. 5)    ntptime -help will get you the usage message.  The -v option will give you
  32.     a listing of which hosts responded, and how well they converged.  The
  33.     host with a "*" next to it is the one used to set the clock.  The -t option
  34.     changes the amount of time ntptime will wait for a host to converge, the default
  35.     is 15 seconds.  The -t option is specified in units of seconds.
  36.  
  37. *********************************
  38.  
  39. ntp - send a single ntp packet to host(s) and report results
  40.  
  41. usage - ntp host1 [host2...]
  42.  
  43. example - ntp 128.2.222.224
  44.  
  45. Doesn't allow domain names yet on the command line.
  46. Has a 60 second timeout, so don't assume that it crashed.
  47.